/* 
 * GrayRabbit Cms基于J2EE架构内容管理系统
 * Copyright © GrayRabbit Co., Ltd. All rights reserved.
 * Department：运营部
 * 更多信息，请visit:
 * http://code.google.com/p/gray-rabbit-cms/
 */
package org.grayrabbit.cms.dao.plugins; 

import java.util.List;

import org.grayrabbit.cms.entity.SurveySubject;
import org.grayrabbit.cms.vo.plugins.SurveySubjectBean;

import org.grayrabbit.dao.GenericDao;
import org.grayrabbit.dao.util.Page;
import org.grayrabbit.dao.util.QueryCondition;

/**
 * <b>SurveySubject</b>的DAO接口

 * @version 1.0,创建时间:2011-05-16 16:08:41 
 */
public interface SurveySubjectDao extends GenericDao<SurveySubject, String>{
	
	/**
	 * 根据bean组装查询条件
	 */
	public QueryCondition assembly(SurveySubjectBean bean);
	/**
	 * 根据bean组装统计查询条件
	 */
	public QueryCondition assemblyCount(SurveySubjectBean bean);
	public int count(SurveySubjectBean bean);
	/**
	 * 根据bean组装查询条件(名称参数)
	 */
	public QueryCondition assermblyNameQuery(SurveySubjectBean bean);
	
	/**
	 * 根据bean组装统计查询条件(名称参数)
	 */
	public QueryCondition assemblyNameQueryCount(SurveySubjectBean bean);
	/**
	 * 填充分页组件
	 * @param page
	 * @param bean
	 */
	public List<SurveySubject> findByPage(Page<SurveySubject> page, SurveySubjectBean bean);
	/**
	 * 根据surveyId查询SurveySubject列表
	 * @param voteId
	 * @return
	 */
	List<SurveySubject> findBySurveyId(String surveyId);
	/**
	 * 根据id查找记录列表
	 * @param id
	 * @return
	 */
	List<SurveySubject> findBySubId(String id);
}